<template>
  <div class="not-found-container">
    <div class="not-found-content">
      <div class="error-code">404</div>
      <h2>页面未找到</h2>
      <p>抱歉，您访问的页面不存在或已被移除。</p>
      <router-link to="/" class="btn-back-home">返回首页</router-link>
    </div>
  </div>
</template>

<script setup lang="ts"></script>

<style scoped>
.not-found-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px); /* 减去导航栏高度 */
  background-color: #f0f2f5;
  padding: 40px;
}

.not-found-content {
  text-align: center;
  padding: 48px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
}

.error-code {
  font-size: 96px;
  font-weight: bold;
  color: #1890ff;
  line-height: 1;
  margin-bottom: 24px;
}

h2 {
  font-size: 32px;
  color: #333;
  margin-bottom: 16px;
}

p {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
  line-height: 1.6;
}

.btn-back-home {
  display: inline-block;
  padding: 12px 32px;
  background-color: #1890ff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-back-home:hover {
  background-color: #40a9ff;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .not-found-container {
    padding: 20px;
  }
  
  .not-found-content {
    padding: 32px 24px;
  }
  
  .error-code {
    font-size: 72px;
  }
  
  h2 {
    font-size: 24px;
  }
}
</style>